
function ReadSpawnList(filename)

	local sDir = "producer_props//";
	local sFilepath = sDir .. filename;

	local sSpawnList = file.Read(sFilepath);

	local tCatagories = {}
	local tCurrentData = {}

	for sEntry in sSpawnList:gmatch("[^\r\n]+") do

		if sEntry:find("catagory") != nil then

			local sTitleKey = sEntry:gsub("catagory ", "");
			tCatagories[sTitleKey] = tCatagories[sTitleKey] or {};
			tCurrentData = tCatagories[sTitleKey];

		elseif sEntry:find("filepath") != nil then

			local sDataEntry = sEntry:gsub("filepath ", "")
			table.insert(tCurrentData, sDataEntry)

		end
	end

	return tCatagories
end